#include <iostream>
#include <string>

using namespace std;

class data;

class Time
{
private:
    int hour;
    int min;
    int sec;
public:
    Time()
        :hour(0),min(0),sec(0)
        {

        }
    Time(int hour ,int min ,int sec)
        :hour(hour) , min(min) ,sec(sec)
        {

        }
    ~Time()
    {

    }

public:
    void show_Time()
    {
        cout << this->hour << ":" << this->min << ":"<< this->sec << endl;

    }

    void show_data_time(data & D);
};

class data
{
private:
    int year;
    int month;
    int day;
public:
    data()
        : year(0) , month(0), day(0)
        {

        }
    data(int year ,int month ,int day)
        :year(year) ,month(month) , day(day)
        {

        } 

public:
    void show_Data()
    {
        cout << this->year << "/" << this->month << "/" <<this->day << endl;
    }
    
    friend void Time::show_data_time(data & D);
};

void Time::show_data_time(data &D)
{
    cout << D.year <<"/"<< D.month << "/" << D.day << endl;
    cout << this->hour << ":" << this->min << ":" << this->sec << endl;
}


int main(int argc, char const *argv[])
{
    
    Time T(16,14,30);
    data D(2025,1,17);

    T.show_data_time(D);
    
    return 0;
}
